package com.kpx.app.bean;


import com.kpx.app.configs.Constants;

import java.io.Serializable;

/**
 * 作者： Ryan
 * 描述：用户设备信息收集类
 * 创建时间：2015/4/21 17:44.
 */
public class DeviceInfo implements Serializable {

    /**
     * 设备唯一标示
     */
    private String IMEI;
    /**
     * 网络连接类型 WIFI / MOBILE
     */
    private String networkType;
    /**
     * 手机的MAC地址
     */
    private String MAC;
    /**
     * 手机的IP地址
     */
    private String IPAddress;
    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 应用版本
     */
    private String version;
    /**
     * 设备系统版本号
     */
    private String OSVersion;

    public String getIMEI() {
        return IMEI;
    }

    public void setIMEI(String IMEI) {
        this.IMEI = IMEI;
    }

    public String getNetworkType() {
        return networkType;
    }

    public void setNetworkType(String networkType) {
        this.networkType = networkType;
    }

    public String getMAC() {
        return MAC;
    }

    public void setMAC(String MAC) {
        this.MAC = MAC;
    }

    public String getIPAddress() {
        return IPAddress;
    }

    public void setIPAddress(String IPAddress) {
        this.IPAddress = IPAddress;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getOSVersion() {
        return OSVersion;
    }

    public void setOSVersion(String OSVersion) {
        this.OSVersion = OSVersion;
    }

    @Override
    public String toString() {
        if (Constants.DEBUG) {
            return "DeviceInfo{" +
                    "IMEI='" + IMEI + '\'' +
                    ", networkType='" + networkType + '\'' +
                    ", MAC='" + MAC + '\'' +
                    ", IPAddress='" + IPAddress + '\'' +
                    ", deviceName='" + deviceName + '\'' +
                    ", version='" + version + '\'' +
                    ", OSVersion='" + OSVersion + '\'' +
                    '}';
        } else {
            return super.toString();
        }

    }
}
